package com.pkx.cloud.fse7.dms.device.service;

import com.pkx.cloud.fse7.dms.device.entity.Device;
import com.pkx.cloud.mybatis.comn.BaseSev;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * 门禁设备 服务类
 *
 * @author ly
 * @since 2020-10-14
 */
public interface DeviceService extends BaseSev<Device> {

    /**
     * 分页列表
     *
     * @param device
     * @return
     */
    Page<Device> pageList(Page page, Device device);

    /**
     * 列表查询
     *
     * @param device
     * @return
     */
    List<Device> listByEntity(Device device);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    Device selectById(Long id);

    String update(Device device);
    String add(Device device);
    String delete(String condition);
}